package cn.feizhu.aimarket.ai.workflow.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 书籍保存事件
 * 当书籍成功保存到数据库后发布此事件
 * 
 * @author feizhu
 * @since 2025/10/21
 */
@Getter
public class BookSavedEvent extends ApplicationEvent {

    private final Long bookId;
    private final Long userId;
    private final Long appId;
    private final String title;
    private final String filePath;

    public BookSavedEvent(Object source, Long bookId, Long userId, Long appId, String title, String filePath) {
        super(source);
        this.bookId = bookId;
        this.userId = userId;
        this.appId = appId;
        this.title = title;
        this.filePath = filePath;
    }
}